<?php
namespace Admin\Controller;
use Think\Controller;
class TestController extends Controller {
    public function index(){
        $fp = fsockopen("mall.37degree.com", 80, $errno, $errstr, 30);
		if (!$fp) {
		    echo "$errstr ($errno)<br />\n";
		} else {
		    $out = "GET /index/detail.html?sid=162 HTTP/1.1\r\n";
		    $out .= "Host: mall.37degree.com\r\n";
		    $out .= "Connection: Close\r\n\r\n";
		    fwrite($fp, $out);
		    while (!feof($fp)) {
		        echo fgets($fp, 128);
		    }
		    fclose($fp);
		}
    }


}